		document.getElementById('contactForm').addEventListener('submit', function(e) {
		           e.preventDefault();
		           
		           // 表单验证
		           const formData = new FormData(this);
		           const name = formData.get('name').trim();
		           const email = formData.get('email').trim();
		           const subject = formData.get('subject').trim();
		           const message = formData.get('message').trim();
		
		           if (!name || !email || !subject || !message) {
		               alert('请填写所有必填字段');
		               return;
		           }
		
		           if (!validateEmail(email)) {
		               alert('请输入有效的邮箱地址');
		               return;
		           }
		
		           // 这里可以添加AJAX提交代码
		           console.log('表单数据:', {
		               name,
		               email,
		               subject,
		               message
		           });
		
		           alert('消息已发送，我们会尽快回复您！');
		           this.reset();
		       });
		
		       function validateEmail(email) {
		           const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
		           return re.test(email);
		       }
